package com.service.impl;

import com.mapper.UserMapper2;
import com.pojo.Department;
import com.pojo.Employee;
import com.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DepartmentServiceImpl implements DepartmentService {
    @Autowired
    UserMapper2 userMapper2;
    @Override
    public List<Department> queryAll() {
        return userMapper2.queryAll();
    }

    @Override
    public Department queryById(int id) {
        return userMapper2.queryById(id);
    }
}
